
public class Code009 {
    public static void main(String[] args) {
    	for(int i=0;i<5;i++){
    		   if(i==0||i==4){
    		    for(int j=0;j<5;j++){
    		    
    		    System.out.print("*");
    		    }
    		    System.out.println();
    		    
    		   }else{
    		    for(int k=0;k<5;k++){
    		     if(k==0){
    		      System.out.print("*");
    		     }else if(k==4){
    		      System.out.print("*");
    		     }else{
    		      System.out.print(" ");
    		      continue;
    		     }
    		     
    		    }System.out.println();
    		   }
    		   
    		   
    		   
    		  }
	}
}
